﻿import org.aswing.awml.AwmlLoader;
import org.aswing.awml.AwmlManager;
import org.aswing.JFrame;
import org.aswing.JTable;

class com.uml.AwmlTest  {

    public static function main():Void{
        Stage.scaleMode = "noScale";
        Stage.align = "T";
        try{
            trace("try AwmlTest");
            var p:AwmlTest = new AwmlTest();
        }catch(e){
            trace("error : " + e);
        }
    }

    private var frame:JFrame;
    private var loader:AwmlLoader;
        
    public function AwmlTest() {
    	AwmlManager.addEventListener("frame", this);
    	
        loader = new AwmlLoader(true);
        loader.addActionListener(onAwmlInit, this);
        loader.load("test.xml");
    }
    
    private function onAwmlInit(loader:AwmlLoader):Void {
    	
        frame = AwmlManager.getFrame("frame", "main");        
        frame.show();
        
        
    }    
    
    
}
